package com.zretc.recommend.dao;

import com.zretc.api.pojo.recommendModule.Recommend;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;


@Mapper
public interface recommendMapper {


    Integer getCount();

    ArrayList<Recommend> queryByPage(@Param("startIndex") Integer startIndex,
                                     @Param("pageSize")Integer pageSize,@Param("cityName")String cityname,@Param("keyWords")String keywords);

    Recommend getMsgById(Integer id);

    boolean addRecommend(Recommend recommend);
}